#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main ()
{
	int massiv[100], razmer, i, x, r;
	
	printf ("Vvedite razmer massiva: ");
	scanf ("%d", &razmer);
	printf("\n");

	for (i=0; i < razmer; i++)
		scanf ("%d ", &massiv[i]);
	
	r=razmer;
	if (razmer%2!=0)
		r--;

	for (i=0; i<(r/2); i++)
	{
		x=massiv[i];
		massiv[i]=massiv[razmer-1-i];
		massiv[razmer-1-i]=x;
	}

	for (i=0; i < razmer; i++)
		printf ("%d ", massiv [i]);

	system("pause");
	return 0;
}